package com.springboot.test.springbootcrud.filter;

import java.io.IOException;
import javax.servlet.*;

/**
 * @author lzy
 * @version v1.0
 * Create DateTime: 2018/12/28 17:30
 */
public class MyFilter implements Filter {
    @Override
    public void init(FilterConfig filterConfig) throws ServletException {

    }

    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
        System.out.println("myFilter process");
        filterChain.doFilter(servletRequest, servletResponse);
    }

    @Override
    public void destroy() {

    }
}
